package cn.legend.travel.admin.user.pojo.param;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class UserUpdateParam implements Serializable {
    @NotNull(message = "请不要违法操作")
    @Range(min = 2, message = "请不要违法操作")
    Long id;
    String username;
    @Range(min = 0, max = 1, message = "请不要违法操作")
    Integer deleteNickname;
    @Range(min = 0, max = 1, message = "请不要违法操作")
    Integer deleteAvatar;
    @Range(min = 0, max = 1, message = "请不要违法操作")
    Integer deleteBrief;
    @Range(min = 0, max = 1, message = "请不要违法操作")
    Integer state;
    String warningMessage;
}
